function drawDigit(cxt, n, m) {
	var r = 10;
	var x =50+2*r*m
	var y = 50;
	var colors=["#9F35FF","#ffa647","#EA0000","#46A3FF","#A8FF24","#cd93ff","#ffe83f",
	];
	switch(n) {
		case 0:
			//draw digit
			for(i = 0; i < 10; i++) {
				for(j = 0; j < 7; j++) {
					if(n0[i][j] == 1) {
						cxt.beginPath();
						cxt.fillStyle = colors[Math.floor(Math.random()*10)];
						cxt.arc(x + 2 * r * j, y + 2 * r * i, r, 0, 2 * Math.PI);
						cxt.fill();
						cxt.closePath();
					}
				}
			}
			break;
		case 1:
			//draw digit
			for(i = 0; i < 10; i++) {
				for(j = 0; j < 7; j++) {
					if(n1[i][j] == 1) {
						cxt.beginPath();
						cxt.fillStyle = colors[Math.floor(Math.random()*10)];
						cxt.arc(x + 2 * r * j, 50 + 2 * r * i, r, 0, 2 * Math.PI);
						cxt.fill();
						cxt.closePath();
					}
				}
			}
			break;
		case 2:
			//draw digit
			for(i = 0; i < 10; i++) {
				for(j = 0; j < 7; j++) {
					if(n2[i][j] == 1) {
						cxt.beginPath();
						cxt.fillStyle = colors[Math.floor(Math.random()*10)];
						cxt.arc(x + 2 * r * j, 50 + 2 * r * i, r, 0, 2 * Math.PI);
						cxt.fill();
						cxt.closePath();
					}
				}
			}
			break;
		case 3:
			//draw digit
			for(i = 0; i < 10; i++) {
				for(j = 0; j < 7; j++) {
					if(n3[i][j] == 1) {
						cxt.beginPath();
						cxt.fillStyle = colors[Math.floor(Math.random()*10)];
						cxt.arc(x + 2 * r * j, 50 + 2 * r * i, r, 0, 2 * Math.PI);
						cxt.fill();
						cxt.closePath();
					}
				}
			}
			break;
		case 4:
			//draw digit
			for(i = 0; i < 10; i++) {
				for(j = 0; j < 7; j++) {
					if(n4[i][j] == 1) {
						cxt.beginPath();
						cxt.fillStyle = colors[Math.floor(Math.random()*10)];
						cxt.arc(x + 2 * r * j, 50 + 2 * r * i, r, 0, 2 * Math.PI);
						cxt.fill();
						cxt.closePath();
					}
				}
			}
			break;
		case 5:
			//draw digit
			for(i = 0; i < 10; i++) {
				for(j = 0; j < 7; j++) {
					if(n5[i][j] == 1) {
						cxt.beginPath();
						cxt.fillStyle = colors[Math.floor(Math.random()*10)];
						cxt.arc(x + 2 * r * j, 50 + 2 * r * i, r, 0, 2 * Math.PI);
						cxt.fill();
						cxt.closePath();
					}
				}
			}
			break;
		case 6:
			//draw digit
			for(i = 0; i < 10; i++) {
				for(j = 0; j < 7; j++) {
					if(n6[i][j] == 1) {
						cxt.beginPath();
						cxt.fillStyle = colors[Math.floor(Math.random()*10)];
						cxt.arc(x + 2 * r * j, 50 + 2 * r * i, r, 0, 2 * Math.PI);
						cxt.fill();
						cxt.closePath();
					}
				}
			}
			break;
		case 7:
			//draw digit
			for(i = 0; i < 10; i++) {
				for(j = 0; j < 7; j++) {
					if(n7[i][j] == 1) {
						cxt.beginPath();
						cxt.fillStyle = colors[Math.floor(Math.random()*10)];
						cxt.arc(x + 2 * r * j, 50 + 2 * r * i, r, 0, 2 * Math.PI);
						cxt.fill();
						cxt.closePath();
					}
				}
			}
			break;
		case 8:
			//draw digit
			for(i = 0; i < 10; i++) {
				for(j = 0; j < 7; j++) {
					if(n8[i][j] == 1) {
						cxt.beginPath();
						cxt.fillStyle =colors[Math.floor(Math.random()*10)];
						cxt.arc(x + 2 * r * j, 50 + 2 * r * i, r, 0, 2 * Math.PI);
						cxt.fill();
						cxt.closePath();
					}
				}
			}
			break;
		case 9:
			//draw digit
			for(i = 0; i < 10; i++) {
				for(j = 0; j < 7; j++) {
					if(n9[i][j] == 1) {
						cxt.beginPath();
						cxt.fillStyle = colors[Math.floor(Math.random()*10)];
						cxt.arc(x + 2 * r * j, 50 + 2 * r * i, r, 0, 2 * Math.PI);
						cxt.fill();
						cxt.closePath();
					}
				}
			}
			break;
				case "colon":
			//draw digit
			for(i = 0; i < 10; i++) {
				for(j = 0; j < 7; j++) {
					if(colon[i][j] == 1) {
						cxt.beginPath();
						cxt.fillStyle = colors[Math.floor(Math.random()*10)];
						cxt.arc(x + 2 * r * j, 50 + 2 * r * i, r, 0, 2 * Math.PI);
						cxt.fill();
						cxt.closePath();
					}
				}
			}
			break;
	}

}

var n0 = [
	[0, 0, 1, 1, 1, 0, 0],
	[0, 1, 1, 0, 1, 1, 0],
	[1, 1, 0, 0, 0, 1, 1],
	[1, 1, 0, 0, 0, 1, 1],
	[1, 1, 0, 0, 0, 1, 1],
	[1, 1, 0, 0, 0, 1, 1],
	[1, 1, 0, 0, 0, 1, 1],
	[1, 1, 0, 0, 0, 1, 1],
	[0, 1, 1, 0, 1, 1, 0],
	[0, 0, 1, 1, 1, 0, 0]
]
var n1 = [
	[0, 0, 0, 1, 1, 0, 0],
	[0, 1, 1, 1, 1, 0, 0],
	[0, 0, 0, 1, 1, 0, 0],
	[0, 0, 0, 1, 1, 0, 0],
	[0, 0, 0, 1, 1, 0, 0],
	[0, 0, 0, 1, 1, 0, 0],
	[0, 0, 0, 1, 1, 0, 0],
	[0, 0, 0, 1, 1, 0, 0],
	[0, 0, 0, 1, 1, 0, 0],
	[1, 1, 1, 1, 1, 1, 1]
]
var n2 = [
	[0, 1, 1, 1, 1, 1, 0],
	[1, 1, 0, 0, 0, 1, 1],
	[0, 0, 0, 0, 0, 1, 1],
	[0, 0, 0, 0, 1, 1, 0],
	[0, 0, 0, 1, 1, 0, 0],
	[0, 0, 1, 1, 0, 0, 0],
	[0, 1, 1, 0, 0, 0, 0],
	[1, 1, 0, 0, 0, 0, 0],
	[1, 1, 0, 0, 0, 1, 1],
	[1, 1, 1, 1, 1, 1, 1]
]
var n3 = [
	[1, 1, 1, 1, 1, 1, 1],
	[0, 0, 0, 0, 0, 1, 1],
	[0, 0, 0, 0, 1, 1, 0],
	[0, 0, 0, 1, 1, 0, 0],
	[0, 0, 1, 1, 1, 0, 0],
	[0, 0, 0, 0, 1, 1, 0],
	[0, 0, 0, 0, 0, 1, 1],
	[0, 0, 0, 0, 0, 1, 1],
	[1, 1, 0, 0, 0, 1, 1],
	[0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